package com.mapper;

import com.entity.Cinema;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Milburn
 * @create 2021-03-01 16:46
 */
@Repository
public interface CinemaMapper {

    Cinema findCinemaById(long cinema_id);
    Integer addCinema(Cinema cinema);
    Integer updateCinema(Cinema cinema);
    Integer deleteCinema(long cinema_id);
    List<Cinema> findAllCinemas();
    List<Cinema> findCinemasLikeName(String cinema_name);
    List<Cinema> findCinemaByMovieId(long movie_id);

}
